﻿
namespace Ray_Tracer
{
    class Disk
    {
        public readonly int X, Y;
        public readonly int radius;

        public Disk(int x, int y, int r)
        {
            X = x;
            Y = y;
            radius = r;
        }

        public bool is_in_bound(int x, int y)
        {
            int sqd = (X - x) * (X - x) + (Y - y) * (Y - y);

            return sqd <= (radius * radius);
        }
    }
}
